package com.ruoyi.signin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.signin.mapper.SigninMapper;
import com.ruoyi.signin.domain.Signin;
import com.ruoyi.signin.service.ISigninService;

/**
 * 签到信息Service业务层处理
 * 
 * @author dlh
 * @date 2024-12-05
 */
@Service
public class SigninServiceImpl implements ISigninService 
{
    @Autowired
    private SigninMapper signinMapper;

    /**
     * 查询签到信息
     * 
     * @param id 签到信息主键
     * @return 签到信息
     */
    @Override
    public Signin selectSigninById(Long id)
    {
        return signinMapper.selectSigninById(id);
    }

    /**
     * 查询签到信息列表
     * 
     * @param signin 签到信息
     * @return 签到信息
     */
    @Override
    public List<Signin> selectSigninList(Signin signin)
    {
        return signinMapper.selectSigninList(signin);
    }

    /**
     * 新增签到信息
     * 
     * @param signin 签到信息
     * @return 结果
     */
    @Override
    public int insertSignin(Signin signin)
    {
        return signinMapper.insertSignin(signin);
    }

    /**
     * 修改签到信息
     * 
     * @param signin 签到信息
     * @return 结果
     */
    @Override
    public int updateSignin(Signin signin)
    {
        return signinMapper.updateSignin(signin);
    }

    /**
     * 批量删除签到信息
     * 
     * @param ids 需要删除的签到信息主键
     * @return 结果
     */
    @Override
    public int deleteSigninByIds(Long[] ids)
    {
        return signinMapper.deleteSigninByIds(ids);
    }

    /**
     * 删除签到信息信息
     * 
     * @param id 签到信息主键
     * @return 结果
     */
    @Override
    public int deleteSigninById(Long id)
    {
        return signinMapper.deleteSigninById(id);
    }
}
